package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.StatisticsDto;
import com.heima.wemedia.service.WmStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: team
 * @description:
 * @author: 羿哥哥
 * @create: 2023-06-28 15:21
 **/
@RestController
@RequestMapping("api/v1/statistics")
public class WmStatisticsController {
    @Autowired
    private WmStatisticsService wmStatisticsService;
    /*图文统计*/
    @GetMapping("/newsDimension")
    public ResponseResult dimension(String beginDate,String endDate){

        return wmStatisticsService.dismension(beginDate,endDate);
    }



     @GetMapping("/newsPage")
    public ResponseResult newPage( StatisticsDto dto){

        return wmStatisticsService.newPage(dto);
     }
}
